<!DOCTYPE html>
<html lang="en">

	<head>
		<!-- BEGIN META -->
		<?php $this->load->view('Public/headmeta.html');?>
		<!-- END META -->

		<!-- BEGIN STYLESHEET-->
		<?php $this->load->view('Public/headcss.html');?>
		<!-- END STYLESHEET-->
		<title>
			<?php echo $current['title']."-".$setting['title'];?>
		</title>

	</head>

	<body>
		<!-- BEGIN SECTION -->
		<section id="container">
			<!-- BEGIN HEADER -->
			<?php $this->load->view('Public/header.html');?>
			<!-- END HEADER -->
			<!-- BEGIN SIDEBAR -->
			<?php $this->load->view('Public/sidebar.html');?>
			<!-- END SIDEBAR -->
			<!-- BEGIN MAIN CONTENT -->
			<section id="main-content">
				<!-- BEGIN WRAPPER  -->
				<section class="wrapper">
					<!-- TOPMENU ROW  -->
					<?php $this->load->view('Public/topmenu.html');?>
					<!-- TOPMENU ROW  -->

					<!-- BEGIN ROW  -->
					<div class="row">
						<div class="col-lg-12">
							<section class="panel">
								<header class="panel-heading">
									<span class="label label-primary"><?php echo $current['title'];?></span>
									<span class="tools pull-right"> </span>
								</header>
								<div class="panel-body">
									<!-- BEGIN NAV -->
									<nav class="navbar navbar-default">
										<form class=" navbar-form form-inline " role="search ">
											<div class="form-group pull-right ">
												<a href="<?php echo site_url('Pkadmin/Article/add');?>" class="btn btn-primary pull-right "><i class="fa fa-plus "></i>新增文章</a>
											</div>
										</form>
									</nav>
									<!-- END NAV -->
									<table class="table table-striped table-advance table-hover">
										<thead>
											<tr>
												<th class="text-center "><i class="fa fa-list "></i> ID </th>
												<th class="text-center "><i class="fa fa-edit "></i> 文章名称 </th>
												<th class="text-center "><i class="fa fa-sitemap "></i> 所属分类 </th>
												<th class="text-center "><i class="fa fa-book"></i> 文章摘要 </th>
												<th class="text-center "><i class="fa fa-clock-o "></i> 发布时间 </th>
												<th class="text-center "><i class="fa fa-calendar-o "></i> 操作 </th>
											</tr>
										</thead>
										<tbody>
											<?php foreach($article_list as $item):?>
											<tr>
												<td class="text-center ">
													<?php echo $item['article_id'];?>
												</td>
												<td class="text-center ">
													<?php echo $item['article_title'];?>
												</td>
												<td class="text-center ">
													<?php echo $item['category_name'];?>
												</td>
												<td class="text-center ">
													<?php echo $item['article_desc'];?>
												</td>
												<td class="text-center ">
													<?php echo date("Y-m-d H:i:s",$item['issue_time']);?>
												</td>
												<td class="text-center ">
													<a href="<?php echo site_url('Pkadmin/Article/edit').'/'.$item['article_id'];?>" class="btn btn-primary btn-xs" title="修改">
														<li class="fa fa-pencil"></li>
													</a>
													<a val="<?php echo site_url('Pkadmin/Article/del').'/'.$item['article_id'];?>" class="btn btn-danger btn-xs del" title="删除">
														<li class="fa fa-trash-o"></li>
													</a>
												</td>
											</tr>
											<?php endforeach;?>
										</tbody>
									</table>
									<!-- PAGEINFO ROW-->
									<div class="text-right m-r-15">
										<?php echo $pageinfo;?>
									</div>
									<!-- END PAGEINFO -->
								</div>
							</section>
						</div>
					</div>
					<!-- END ROW  -->
				</section>
				<!-- END WRAPPER  -->
			</section>
			<!-- END MAIN CONTENT -->
			<!-- BEGIN FOOTER -->
			<?php $this->load->view('Public/footer.html');?>
			<!-- END FOOTER -->
		</section>
		<!-- END SECTION -->
		<!-- BEGIN JS -->
		<?php $this->load->view('Public/footjs.html');?>
		<!-- INLINE JS RELATED TO THIS PAGE -->
		<script type="text/javascript">
			$(function() {
				$(".del").click(function() {
					var url = $(this).attr('val');
					layer.confirm('确定要删除此文章吗？', {
						btn: ['确定', '取消'] //按钮
					}, function() {
						window.location.href = url;
					}, function() {});
				});
			});
		</script>
		<!-- END JS -->
	</body>

</html>